<template>
    <div v-text="msg" class="dv1"></div>
     <div v-html="msg1" class="dv2"></div>
</template>

<script setup>
const msg="<span>这是v-text指令的文本内容</span>"
const msg1="<i>这是v-html指令的内容</i>"

</script>v1

<style scoped>
.dv1{
    color: rgb(0, 255, 21);
}
.dv2{
    color: rgb(255, 0, 0);
}
</style>